package views

import (
	ut "dockerui/utils"
	"github.com/gin-gonic/gin"
)

func Run() {
	var (
		router *gin.Engine
		serverAddr string
	)
	// init default router
	router = gin.Default()
	// map router
	IRouter(router)

	// Init Chan
	ut.InitChain()
	// config the server
	serverAddr = ut.ServerBind()
	// run server
	router.Run(serverAddr)

}
